package cn.wolfcode.wms.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
//采购单对象
public class Orderbill extends BaseDomain {
    //单据的状态是固定的值,做成常量
    public static final Integer AUDIT = 1;
    public static final Integer NOTAUDIT = 0;

    //默认没有审核


    private String sn;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    //审核时间
    private Date vdate;

    private Integer status = 0;

    private BigDecimal totalAmount;

    private BigDecimal totalNumber;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date auditTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;

    private Employee inputUser;

    private Employee auditor;

    private Supplier supplier;

    //包含的明细
    List<OrderBillItem> items = new ArrayList<>();


}